package com.mlingdu.ffmpegaudioplayer.common.base;

import android.widget.Toolbar;

import com.mlingdu.ffmpegaudioplayer.R;

import me.yokeyword.fragmentation.SupportFragment;

/**
 * Created by daimaren on 2018/1/27
 * 975808394@qq.com
 */

public class BaseBackFragment extends SupportFragment{
	@Override
	public boolean onBackPressedSupport() {
		return super.onBackPressedSupport();
	}
	protected void initToolbarNav(Toolbar toolbar){
		toolbar.setNavigationIcon(R.drawable.ic_arrow_back);
		toolbar.setNavigationOnClickListener(v -> {
			_mActivity.onBackPressed();
		});
	}
}
